package com.optitronics.util;

import java.math.BigDecimal;

public class OptitronicsConstants {

	public static String EMAIL_PATTERN = "^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";

	public static String ROLE_ADMIN = "ROLE_ADMIN";
	public static String ROLE_RESELLER = "ROLE_RESELLER";

	public static final String COUNTER_TABLE_NAME = "table_counter";
	public static final String COUNTER_PK_COLUMN_NAME = "TABLE_NAME";
	public static final String COUNTER_VALUE_COLUMN_NAME = "COUNTER_VALUE";
	public static final int COUNTER_ALLOCATION_SIZE = 1;

	public static final String INVOICE_PREFIX = "";
	public static final String INVOICE_DATE_TIME_FORMAT = "dd.MM.yyyy HH.mm.ss";
	public static final String INVOICE_DATE_FORMAT = "dd.MM.yyyy";

	public static final BigDecimal TAX_PERCENT = BigDecimal.valueOf(20.0);
	public static final BigDecimal TAX_PLUS_ONE = BigDecimal.ONE.add(TAX_PERCENT.divide(BigDecimal.valueOf(100.0)));

	public static final String DB_CATALOG = "optronic_db1";
	public static final int PAGE_SIZE = 20;

	public static final Integer ORDER_TYPE_NEW = Integer.valueOf(0);
	public static final Integer ORDER_TYPE_RENEWAL = Integer.valueOf(1);
	public static final Integer ORDER_TYPE_ACADEMIC = Integer.valueOf(2);
	public static final Integer ORDER_TYPE_STUDENT = Integer.valueOf(3);
	public static final Integer ORDER_TYPE_PENSIONER = Integer.valueOf(4);
	public static final Integer ORDER_TYPE_NUNS = Integer.valueOf(5);
	public static final Integer ORDER_GRAPHIC_DESIGNER = Integer.valueOf(6);

	public static final String DATE_FORMAT = "dd.MM.yyyy";

	public static final BigDecimal PRODUCT_COMPANY_RENEWAL_PERCENT = BigDecimal.valueOf(0.7);
	public static final BigDecimal PRODUCT_COMPANY_ACADEMIC_PERCENT = BigDecimal.valueOf(0.5);

}
